﻿namespace Sidvall.CodeGenerator
{
	public class DomainCommand
	{
		#region Business Members

		public string Name { get; set; }
		public DomainModel DomainModel { get; internal set; }

		#region ResultTypeName

		private string _ResultTypeName;
		public string ResultTypeName
		{
			get
			{
				return _ResultTypeName;
			}
			set
			{
				_ResultTypeName = value;
			}
		}

		#endregion

		#region Import

		public void Import(DomainCommand item)
		{
			if (item == null)
				return;

			if (item.Name != null)
				this.Name = item.Name;
		}

		#endregion
		#region ToString

		public override string ToString()
		{
			return this.Name;
		}

		#endregion

		#endregion
		#region Constructors

		public DomainCommand()
		{
		}

		#endregion
	}
}
